package org.telegram.bot.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serial;

/**
 * 违禁情对象 bot_ban_emoji
 *
 * @author wyx
 * @date 2024-11-30
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("bot_ban_emoji")
public class BotBanEmoji extends BaseEntity
{
    @Serial
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 群组ID */
    @Excel(name = "群组ID")
    private Long chatId;

    /** 表情ID */
    @Excel(name = "表情ID")
    @TableField(value = "emoji", condition = SqlCondition.LIKE)
    private String emoji;

    /** 名称 */
    @Excel(name = "名称")
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;

    /** 显示顺序 */
    private Integer orderNum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建者Id */
    @TableField(fill = FieldFill.INSERT)
    private Long createById;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chatId", getChatId())
            .append("emoji", getEmoji())
            .append("name", getName())
            .append("remark", getRemark())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
